import {WeaTools} from 'ecCom';

//获取上报信息condition
export const getInfoCondition = params => {
	return  WeaTools.callApi('/api/info/getInfoCondition', 'GET', params);
}

//保存上报信息
export const saveInfoReport = params => {
	return  WeaTools.callApi('/api/info/saveInfoReport', 'POST', params);
}

//编辑上报信息
export const updateInfoReport = params => {
	return  WeaTools.callApi('/api/info/updateInfoReport', 'POST', params);
}

//正式提交上报信息进行审批
export const submitInfoReport = params => {
	return  WeaTools.callApi('/api/info/submitInfoReport', 'POST', params);
}

//批量提交上报信息(已废弃)
export const batchSubmitInfoReport = params => {
	return  WeaTools.callApi('/api/info/batchSubmitInfoReport', 'POST', params);
}

//提交审批通过接口
export const passInfoReport = params => {
	return  WeaTools.callApi('/api/info/passInfoReport', 'POST', params);
}

//得到上报信息list
export const getInfoReportList = params => {
	return  WeaTools.callApi('/api/info/getInfoReportList', 'POST', params);
}

//获取信息反馈
export const getInfoFeedbackCondition = params => {
	return  WeaTools.callApi('/api/info/getInfoFeedbackCondition', 'GET', params);
}

//提交反馈信息
export const submitInfoFeedback = params => {
	return  WeaTools.callApi('/api/info/submitInfoFeedback', 'POST', params);
}

//查询反馈信息List
export const getInfoFeedbackList = params => {
	return  WeaTools.callApi('/api/info/getInfoFeedbackList', 'POST', params);
}

//搜索上报信息的condition
export const getInfoSearchCondition = params => {
	return  WeaTools.callApi('/api/info/getInfoSearchCondition', 'POST', params);
}

//搜索上报信息的结果list
export const getInfoSearchList = params => {
	return  WeaTools.callApi('/api/info/getInfoSearchList', 'POST', params);
}

//待处理列表接口
export const getInfoHandleList = params => {
	return  WeaTools.callApi('/api/infoHandle/getInfoHandleList', 'POST', params);
}

//上报信息处理卡片condition
export const getAddInfoTypeCondition = params => {
	return  WeaTools.callApi('/api/infoHandle/getAddInfoTypeCondition', 'POST', params);
}


//保存刊型
export const saveInfoType = params => {
	return  WeaTools.callApi('/api/infoHandle/saveInfoType', 'POST', params);
}

//查询待处理信息List
export const getInfoSiftList = params => {
	return  WeaTools.callApi('/api/info/sift/getInfoSiftList', 'POST', params);
}

//获取筛选信息DialogList
export const getInfoSiftDialogList = params => {
	return  WeaTools.callApi('/api/info/sift/getInfoSiftDialogList', 'POST', params);
}

//获取筛选信息Dialog
export const getInfoSiftDialogCondition = params => {
	return  WeaTools.callApi('/api/info/sift/getInfoSiftDialogCondition', 'POST', params);
}

//新增待编信息，保存刊型和栏目
export const saveJTypeAndColumn = params => {
	return  WeaTools.callApi('/api/info/sift/saveJTypeAndColumn', 'POST', params);
}

//获取排版信息
export const getComposingCondition = params => {
	return  WeaTools.callApi('/api/infoHandle/getComposingCondition', 'POST', params);
}

//编辑待编信息
export const updateInfoSifting = params => {
	return  WeaTools.callApi('/api/infoHandle/updateInfoSifting', 'POST', params);
}

//保存期刊
export const saveInfoJournal = params => {
	return  WeaTools.callApi('/api/infoHandle/saveInfoJournal', 'POST', params);
}
//更新期刊
export const updateInfoJournal = params => {
	return  WeaTools.callApi('/api/infoHandle/updateInfoJournal', 'POST', params);
}
//得到批量修改栏目弹出框condition
export const getJ_ColumnModalCondition = params => {
	return  WeaTools.callApi('/api/infoHandle/getJ_ColumnModalCondition', 'POST', params);
}

//得到调整期数弹出框condition
export const getAdjustPeriodsCondition = params => {
	return  WeaTools.callApi('/api/infoHandle/getAdjustPeriodsCondition', 'POST', params);
}

//检测调整的期数
export const checkInfoPeriods = params => {
	return  WeaTools.callApi('/api/infoHandle/checkInfoPeriods', 'POST', params);
}

//查询待排版/已发布信息List
export const getInfoWaitEditList = params => {
	return  WeaTools.callApi('/api/info/sift/getInfoWaitEditList', 'POST', params);
}

//获取待编信息condition
export const getInfoWaitEditViewCondition = params => {
	return  WeaTools.callApi('/api/info/sift/getInfoWaitEditViewCondition', 'POST', params);
}

//排版按钮 检查刊型数量
export const checkJournal = params => {
	return  WeaTools.callApi('/api/info/sift/checkJournal', 'POST', params);
}

//筛选按钮弹出框
export const getFilterDialogCondition = params => {
	return  WeaTools.callApi('/api/infoHandle/getFilterDialogCondition', 'POST', params);
}

//快捷筛选
export const getQuickFilterDialogCondition = params => {
	return  WeaTools.callApi('/api/infoHandle/getQuickFilterDialogCondition', 'POST', params);
}
//快捷筛选可选期刊
export const getQuickJournalList = params => {
	return  WeaTools.callApi('/api/infoHandle/getQuickJournalList', 'POST', params);
}
//保存快捷筛选
export const saveQuickFilter = params => {
	return  WeaTools.callApi('/api/infoHandle/saveQuickFilter', 'POST', params);
}
//快捷筛选时判断刊型是否已经采用过该上报信息
export const checkJournalType = params => {
	return  WeaTools.callApi('/api/infoHandle/checkJournalType', 'POST', params);
}

//保存筛选刊型和栏目
export const saveJtypeAndJcolumn = params => {
	return  WeaTools.callApi('/api/infoHandle/saveJtypeAndJcolumn', 'POST', params);
}

//待编信息列表
export const getInfoSiftingList = params => {
	return  WeaTools.callApi('/api/infoHandle/getInfoSiftingList', 'POST', params);
}

//期刊信息列表
export const getInfoJournalList = params => {
	return  WeaTools.callApi('/api/infoHandle/getInfoJournalList', 'POST', params);
}

//获取特殊采用和专报采用的弹出框
export const getSpecialHandleCondition = params => {
	return  WeaTools.callApi('/api/infoHandle/getSpecialHandleCondition', 'POST', params);
}

//特殊采用
export const saveInfoSpecialUse = params => {
	return  WeaTools.callApi('/api/infoHandle/saveInfoSpecialUse', 'POST', params);
}

//专报采用
export const saveInfoSpecialReport = params => {
	return  WeaTools.callApi('/api/infoHandle/saveInfoSpecialReport', 'POST', params);
}

//刊型历史期数
export const getHistoricalPeriodsList = params => {
	return  WeaTools.callApi('/api/infoHandle/getHistoricalPeriodsList', 'POST', params);
}

//取消特殊采用
export const cancelSpecialUse = params => {
	return  WeaTools.callApi('/api/infoHandle/cancelSpecialUse', 'POST', params);
}

//获取加分框
export const getRewardList = params => {
	return  WeaTools.callApi('/api/infoHandle/getRewardList', 'POST', params);
}
//保存加分
export const saveAddScore = params => {
	return  WeaTools.callApi('/api/infoHandle/saveAddScore', 'POST', params);
}

//信息加分记录
export const getRewardListByInfoSiftId = params => {
	return  WeaTools.callApi('/api/infoHandle/getRewardListByInfoSiftId', 'POST', params);
}

//删除加分记录
export const deleteAddScore = params => {
	return  WeaTools.callApi('/api/infoHandle/deleteAddScore', 'POST', params);
}
//获取奖惩卡片
export const getInfoAdjustmentCondition = params => {
	return  WeaTools.callApi('/api/infoAdjust/getInfoAdjustmentCondition', 'POST', params);
}

//获取奖惩列表
export const getInfoAdjustmentList = params => {
	return  WeaTools.callApi('/api/infoAdjust/getInfoAdjustmentList', 'POST', params);
}

//保存奖惩信息
export const saveInfoAdjustment = params => {
	return  WeaTools.callApi('/api/infoAdjust/saveInfoAdjustment', 'POST', params);
}
//删除奖惩信息
export const deleteInfoAdjustment = params => {
	return  WeaTools.callApi('/api/infoAdjust/deleteInfoAdjustment', 'POST', params);
}
//统计信息查询condition
export const getInfoCountCondition = params => {
	return  WeaTools.callApi('/api/infoCount/getInfoCountCondition', 'POST', params);
}

//统计信息预览
export const preview = params => {
	return  WeaTools.callApi('/api/infoCount/preview', 'GET', params);
}

//统计信息权限校验
export const checkInfoCountRight = params => {
	return  WeaTools.callApi('/api/infoCount/checkInfoCountRight', 'POST', params);
}

// //统计信息导出
// export const exportWord = params => {
// 	return  WeaTools.callApi('/api/infoCount/exportWord', 'GET', params);
// }

// //统计信息预览导出
// export const previewAndExport = params => {
// 	return  WeaTools.callApi('/api/infoCount/previewAndExport', 'GET', params);
// }

//成文保存文档
export const saveDoc = params => {
	return  WeaTools.callApi('/api/infoHandle/saveDoc', 'POST', params);
}

export const getNewData = params => {
	return  WeaTools.callApi('/api/infoHandle/getNewData', 'POST', params);
}

//提交审批
export const submitInfoJournal = params => {
	return  WeaTools.callApi('/api/infoHandle/submitInfoJournal', 'POST', params);
}

//修改期刊详情isSource状态
export const updateJournalDeatil = params => {
	return  WeaTools.callApi('/api/infoHandle/updateJournalDeatil', 'POST', params);
}

//添加期刊的共享权限
export const addShare = params => {
	return  WeaTools.callApi('/api/infoHandle/addShare', 'POST', params);
}

//是否禁用所有人权限范围
export const getAppDetachDisableAll = params => {
	return  WeaTools.callApi('/api/infoHandle/getAppDetachDisableAll', 'POST', params);
}

//获取共享权限列表
export const getShareList = params => {
	return  WeaTools.callApi('/api/infoHandle/getShareList', 'POST', params);
}

//删除共享权限
export const delShare = params => {
	return  WeaTools.callApi('/api/infoHandle/delShare', 'POST', params);
}

//根据期刊id判断是否具有操作权限
export const checkRightByJournal = params => {
	return  WeaTools.callApi('/api/infoHandle/checkRightByJournal', 'POST', params);
}